﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Masterpage/Page.master" AutoEventWireup="true"
    CodeFile="Article_Manage.aspx.cs" Inherits="Admin_Article_Article_Manage" Title="无标题页" %>

<%@ Register Src="../../Controls/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<asp:Content runat="server" ID="Content" ContentPlaceHolderID="head">
    <link href="../images/StyleAdmin.css" type="text/css" rel="stylesheet" />

    <script language="javascript">
        function showMsg(msg) {
            var i = confirm(msg);
            if (i) {
                return true;
            }
            else {
                return false;
            }
        }
    </script>

    <script type="text/javascript" src="Js/CheckBox.js"></script>

</asp:Content>
<asp:Content ContentPlaceHolderID="ContentPlaceTitle" ID="Content2" runat="server">
    文章管理</asp:Content>
<asp:Content ContentPlaceHolderID="ContentPlaceHolderMain" ID="Content3" runat="server">
    <table border="0" width="100%" cellpadding="1" cellspacing="1">
        <tr>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Repeater ID="articles" runat="server">
                    <HeaderTemplate>
                        <table id="tablist" border="0" bordercolor="#e3e3e3" cellpadding="1" cellspacing="1"
                            width="100%" align="center" style="border: solid 1px #A3C7E2">
                            <tr class="TrTitle">
                                <td>
                                    ID
                                </td>
                                <td>
                                    标题
                                </td>
                                <td>
                                    发布者
                                </td>
                                <td>
                                    更新时间
                                </td>
                                <td>
                                    状态
                                </td>
                                <td>
                                    所属频道
                                </td>
                                <td>
                                    所属分类
                                </td>
                                <td>
                                    操作
                                </td>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="Tr" align="center" height="25" onmouseover="overColor(this)" onmouseout="outColor(this)">
                            <td>
                                <input name="ckx_id" type="checkbox" value='<%# Eval("OrderId") %>' /><%#Eval("OrderId")%>
                            </td>
                            <td>
                                <a href='#' title='<%#Eval("ArtTitle")%>'>
                                    <%# CutString(Eval("ArtTitle").ToString())%></a>
                            </td>
                            <td>
                                <%# dealSpaceVal(Convert.ToString(Eval("ArtAdmin")))%>
                            </td>
                            <td>
                                <%#Convert.ToDateTime(Eval("UpdateDate")).ToShortDateString()%>
                            </td>
                            <%--  <td width="50" ><%# changeBoolString(Convert.ToBoolean(Eval("onTop")), "<a href='Article_Action.ashx?articleId=" + Eval("articleID") + "&action=0&typeId=onTop' title='当前已为置顶！确定要取消置顶吗？'    onclick=\"return showMsg('确定要取消置顶吗？');\"><font color='#FF9900'>是</font></a>", "<a href='Article_Action.ashx?articleId=" + Eval("articleID") + "&action=1&typeId=onTop' title='当前尚未置顶！确定要设置为置顶吗？'  onclick=\"return showMsg('确定要设置为置顶吗？');\">否</a>")%></td>
      <td width="40" ><%# changeBoolString(Convert.ToBoolean(Eval("elite")), "<a href='Article_Action.ashx?articleId=" + Eval("articleID") + "&action=0&typeId=TJ' title='当前已为推荐！确定要取消推荐吗？' onclick=\"return showMsg('确定要取消推荐吗？');\"><font color='#FF9900'>是</font></a>", "<a href='Article_Action.ashx?articleId=" + Eval("articleID") + "&action=1&typeId=TJ' title='当前尚未推荐！确定要设置为推荐吗？'  onclick=\"return showMsg('确定要设置为推荐吗？');\" >否</a>")%></td>--%>
                            <td width="30">
                                <%# changeIntString(Convert.ToInt32(Eval("Passed")), "<a href='Article_Action.ashx?articleId=" + Eval("OrderId") + "&action=0&typeId=pass&ispower=' title='当前已通过审核！确定要取消该审核吗？' onclick=\"return showMsg('确定要取消该审核吗？');\"><font color='#FF9900'>已审</font></a>", "<a href='Article_Action.ashx?articleId=" + Eval("OrderId") + "&action=1&typeId=pass' title='当前尚未审核！确定要设置为通过审核吗？'   onclick=\"return showMsg('确定要设置为通过审核吗？');\">未审</a>")%>
                            </td>
                            <td>
                                <%# Eval("ChannelId")%>
                            </td>
                            <td>
                                <%# Eval("CatId") %>
                            </td>
                            <td>
                                <a href='Article_Modify.aspx?channelID=<%#Eval("ChannelId")%>&articleId=<%#Eval("OrderId")%>&Class_ID=<%#Eval("CatId")%>&ispower=<%=getIsPower("update") %>'>
                                    <font color='#005f8c'>修改</font></a>&nbsp;|&nbsp;<a href='Article_Manage.aspx?articleId=<%#Eval("OrderId")%>&actionDel=del&ispower=<%= getIsPower("del") %>'
                                        onclick="return showMsg('确定要删除吗？');"><font color='#005f8c'>删除</font></a>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
            </td>
        </tr>
        <tr>
            <td bgcolor="#EFF8FE" height="1">
                <uc1:Pager ID="Pager1" runat="server" />
            </td>
        </tr>
        <tr>
            <td bgcolor="#EFF8FE">
                <input type="checkbox" value="" id="CheckAll" onclick="CheckBoxAll('CheckAll');" />全选
                <input type="hidden" id="valuelist" runat="server" />
                <asp:Button ID="delBtn" runat="server" Text="批量删除" CssClass="submitMiniGreen" OnClientClick="return GetList('valuelist','删除')"
                    OnClick="delBtn_OnClick" />&nbsp;&nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
